package com.sline.String;

public class Demo1_String {
    public static  void  main(String[] args) {
        // 空构造, 空字符串
        String s1 = new String();
        System.out.println(s1);

        byte[] arr2 = {97,98,99};
        String s2 = new String(arr2);
        System.out.println(s2);

        String st1 = "sline";
        String st2 = "sline";
        String st3 = "Sline";
        System.out.println(st1.equals(st2));
        System.out.println(st1.equals(st3));

        System.out.println("----------------------");

        System.out.println(st1.equalsIgnoreCase(st3));
    }

}
